package service

import (
	"niu-video/app/model"
	"niu-video/app/repository"
)

var CategoryService = newCategoryService()

func newCategoryService() *categoryService {
	return &categoryService{}
}

type categoryService struct {
}

func (c *categoryService) List() []model.Category {
	return repository.CategoryRepository.All()
}
